package com.ygxsk.carhome.response;

import android.os.Parcel;
import android.os.Parcelable;

/*
 * @Author:itchenqi175@163.com
 * @Time:2024/2/26  14:12
 * @Description:档案附件上传的image的携带信息，有半截路径和全路径
 */
public class ArchivesManageImage implements Parcelable {

//    {
//            "fileName":"http://222.222.17.184:8990/resource/file/information/accessory/20240223/2024022311000399468481.png",
//            "filePath":"file/information/accessory/20240223/2024022311000399468481.png",
//            "fileSize":"",
//            "fileType":2,
//            "url":null,
//            "urlPrefix":null
//    }

    //全部的路径
    private String fileName;
    //半截的路径
    private String filePath;

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.fileName);
        dest.writeString(this.filePath);
    }

    public void readFromParcel(Parcel source) {
        this.fileName = source.readString();
        this.filePath = source.readString();
    }

    public ArchivesManageImage() {
    }

    protected ArchivesManageImage(Parcel in) {
        this.fileName = in.readString();
        this.filePath = in.readString();
    }

    public static final Parcelable.Creator<ArchivesManageImage> CREATOR = new Parcelable.Creator<ArchivesManageImage>() {
        @Override
        public ArchivesManageImage createFromParcel(Parcel source) {
            return new ArchivesManageImage(source);
        }

        @Override
        public ArchivesManageImage[] newArray(int size) {
            return new ArchivesManageImage[size];
        }
    };
}
